package com.yager.mapper;

import com.yager.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> getAllUsers();

    String findMaxId();

    User selectByMobile(String mobile);

    User selectByName(String name);

    User selectByEmail(String email);

    User selectByMobileOrNameOrEmail(String str);

    int getSameMobileCount(String mobile);

    int getSameNameCount(String name);

    void deleteUserHouses(String userid);

    void deleteUserOrders(String userid);

    void deleteUserCollections(String userid);

}